const successRes = (res, data) => {
    res.status(200).json({
        success: true,
        data: data
    });
};

const errorRes = (res, message, statusCode = 500) => {
    res.status(statusCode).json({
        success: false,
        message: message
    });
};

module.exports = {
    successRes,
    errorRes
};